package Cn.Sarkar.IMS.DataBaseDefinations

import Cn.Sarkar.Entities.Common.Table
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.comment
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.ignoreCreateForeignKey
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.intColumn
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.reference
import java.awt.geom.Area

object Areas : Table("Area") {
    override var Comment: String = "سودا بولغان رايۇن، سودا بولغان ئورۇن، مەسىلەن ئاشخانىدىكى ئۈستەل، تاللا بازىرىدىكى پۇكەي"
    val ApplicationDomainID = intColumn("ApplicationDomainID") reference IMSApplicationDomains.ID comment "Application Domain"
    val NameID = intColumn("NameID") reference Names.ID comment "ئىسمىس"
    val ParentID = intColumn("ParentID") reference Areas.ID ignoreCreateForeignKey true comment "دادىسى"
    val Category = intColumn("CategoryID") comment "كارىگورىيەسى"

    override val CATEGORY: Int = 2
}